package com.jucai.pppeiyouclient.view.popup;

import android.app.Activity;
import android.view.View;
import android.view.Window;

import com.jucai.pppeiyouclient.R;
import com.jucai.pppeiyouclient.base.BasePopup;
import com.jucai.pppeiyouclient.comm.CommonMethod;

/**
 * Created by Kuky on 2017-04-25.
 */

public class SexChoosePopup extends BasePopup {
    private View popupView;

    public SexChoosePopup(Activity activity, Window window, int animationStyle, View.OnClickListener onClickListener) {
        super(activity, R.layout.popup_sex_choose, window, animationStyle, onClickListener);
    }

    @Override
    protected View getView(Activity activity, int resource, View.OnClickListener onClickListener) {
        popupView = CommonMethod.getView(activity, resource);
        popupView.findViewById(R.id.popup_male).setOnClickListener(onClickListener);
        popupView.findViewById(R.id.popup_female).setOnClickListener(onClickListener);
        return popupView;
    }
}
